package org.fiel.admin.struts.forms;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
//import org.fiel.torque.Aviso;

/**
 * @author Ing. Luis Pablo Gallo
 */
public class AvisoForm extends ActionForm{
//    private Aviso aviso = null;

    /** Creates a new instance of AreaForm */
    public AvisoForm() {
    }

//    public void reset(ActionMapping mapping, HttpServletRequest request){
//        this.aviso = new Aviso();
//    }

    public ActionErrors validate( ActionMapping mapping
                                , HttpServletRequest request ){
        ActionErrors errors = new ActionErrors();
        
//        if (this.aviso.getId()==null){
//            errors.add("id", new ActionError("error.id.requerido"));
//        }
//        if (this.aviso.getImagen()==null){
//            errors.add("nombre", new ActionError("error.imagen.requerida"));
//        }
        
        return errors;
    }
    
}
